<template>
    <el-menu router>
      <el-menu-item class="my-menu-item" v-for="(item,index) in options" :key="index" :index="item.path">
        <i :class="item.icon"></i>
        <span slot="title">{{item.name}}</span>
      </el-menu-item>
    </el-menu>
</template>

<script>
export default {
  name: "Stool",
  data() {
    return {
      options: []
    }
  },
  mounted(){
    this.options = this.$router.options.routes.find(item => {
      return item['path'] = '/';
    })['children']
  }
}
</script>

<style scoped>

</style>
